<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>案件查询</title>
    <script src="<c:url value='/resource/js/jquery-2.0.min.js'/>"></script>
    <link rel="stylesheet" href="<c:url value='/resource/wechat/css/frozen.css'/>">
    <link rel="stylesheet" type="text/css" href="<c:url value='/resource/wechat/css/main.css'/>"/>
    <link type="text/css" href="<c:url value='/resource/wx/newcss/common.css'/>" rel="stylesheet"/>
    <link rel="stylesheet" href="<c:url value='/resource/wechat/css/frozen.css'></c:url>">
    <script  src="<c:url value='/resource/js/common.js'/>" type="text/javascript"></script>
    <script type="text/javascript" src="https://gaapi.jl.gov.cn/web/resource/js/os.analystic-1.1.min.js"></script>
    <script type="text/javascript" src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
</head>
<body ontouchstart>
<section class="ui-container">
    <section id="tab">
        <div class="demo-item">
            <div class="demo-block">
                <div class="ui-tab">

                    <ul class="ui-tab-content" style="width:100%">
                        <li>
                            <div class="ui-form-item ui-form-item-show ui-border-b"
                                 style="border-top: 1px solid #E2E2E2;">
                                <label for="#">身份证号：</label>
                                <input class="text14" type="text" id="loginId" onkeypress="onlyNumber()" maxlength="18" value=""/>
                            </div>
                            <div class="ui-form-item ui-form-item-show ui-border-b">
                                <label for="#">密　　码：</label>
                                <input type="password" value="" id="password" maxlength="20">
                            </div>
                            <div class="ui-form" style="margin-top: 10px;">
                            </div>
                            <div class="ui-btn-wrap">
                                <button class="ui-btn-lg ui-btn-primary" id="gsubmitbtn">
                                    查询
                                </button>
                            </div>
                        </li>

                    </ul>
                </div>
            </div>
            <script class="demo-script">
            </script>
        </div>
    </section>
</section>


<script>
    $("#gsubmitbtn").click(function(){
        submitForm();
    });


    function submitForm() {
        var dabhFormat = /^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/;
        var checkInput = true;
        var loginid =  $("#loginId").val();
        var password = $("#password").val();
        if(loginid==""||null==loginid){
            toast("请输入身份证号", 1500);
            return false;
        }else if (!dabhFormat.test(loginid)) {
            toast("请输入15/18位身份证号", 1500);
            return false;
        }
       else  if(password==""||null==password){
            toast("请输入密码", 1500);
            return false;
        }  else{
        window.location.href = "http://gawx.daqing.gov.cn/econsole/ajcx?sfzh="+loginid+"&mm="+password;
//            window.location.href = "http://localhost/econsole/ajcx?sfzh="+loginid+"&mm="+password;
    }
    }
</script>
</body>
</html>
